package com.mail.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mail.common.DataResult;
import com.mail.dto.EmailConfigDto;
import com.mail.dto.EmailConfigIdDto;
import com.mail.pojo.EmailConfig;

import java.util.Map;

public interface EmailConfigService extends IService<EmailConfig> {
    DataResult addEmailConfig(EmailConfigDto emailConfigDto);

    DataResult updateEmailConfig(Map<String,Object> map);

    DataResult deleteEmailConfig(long id);

    DataResult queryEmailConfigPersonal(Map<String,Object> map);

    DataResult queryEmailByAccount(EmailConfigIdDto emailConfigIdDto);
}
